public class m {

	public static void main(String[] args) {
		double a = -5.12;
		double b = 11.2;
		System.out.println(Math.floor(a));
		String[] aa = "cat".split("");
		for (int i = 0; i < aa.length; i++) {
			System.out.println(aa[i]);
		}
		castTest();
		System.out.println(Integer.parseInt(null));
	}

	private static void castTest() {
		System.out.println(getInteger(null));
		System.out.println(getInteger("003"));
		int a = getInteger("55");
		System.out.println(a);
	}

	private static Integer getInteger(String str) {
		if (str == null) {
			return new Integer(0);
		} else {
			return Integer.parseInt(str);
		}
	}

	private static void containString(String total, String substr) {
		char[] tot = total.toCharArray();
		char[] sub = substr.toCharArray();
		for (int i = 0; i < tot.length; i++) {
			for (int j = 0; j < sub.length; j++) {

			}
		}
	}
}
